package FirstQuestion;

import FirstQuestion.FirstQuesiton;

/**
 * @author cyt
 * @date 2020/6/8
 */
public class FirstQuestionTest {
    public static void main(String[] args) {
        //初始化对象
        FirstQuesiton firstQuesiton = new FirstQuesiton();

        //初始化数组
        FirstQuesiton.arrInit(firstQuesiton.getArr());
        System.out.println("初始化元素");
        firstQuesiton.show();
        System.out.println("--------------------------------------------");
        //打印所有行的元素累加和
        System.out.println("打印所有行的元素累加和");
        firstQuesiton.printAllRows();
        System.out.println("--------------------------------------------");
        //打印所有列的元素累加和
        System.out.println("打印所有列的元素累加和");
        firstQuesiton.printAllColumn();
        System.out.println("--------------------------------------------");
        //打印从左上角到右下角的元素累加和
        System.out.println("打印从左上角到右下角的元素累加和");
        firstQuesiton.printFromLeftUpToRightButtom();
        System.out.println("--------------------------------------------");
        //打印从右上角到左下角的元素累加和
        System.out.println("打印从右上角到左下角的元素累加和");
        firstQuesiton.printFromRightUpToLeftButtom();
    }
}
